package com.wp.design.chain;

public class Test {
	public static void main(String[] args) {
		Course course = new Course();
		course.setCourseName("java课程");
		course.setArticle("java手记");
		course.setVedio("java视频");

		CourseHandler artile = new ArtileHandler();
		CourseHandler video = new VideoHandler();
		video.setNextHandler(artile);
		video.deploy(course);
	}
}
